public class Constants
{
    //CONNECTION
    public static final int TCP_PORT = 5551;
    public static final int UDP_PORT = 5552;
    public static final int TCP_PORT_FILE_UPLOAD = 5553;
    public static final int TCP_PORT_FILE_DOWNLOAD = 5554;
    public static final int DATAGRAM_LENGHT = 256;
    public static final int TRANSFER_SIZE = 1024;
    public static final int SOCKET_TIME = 2000;
    public static final String UDP_MULTICAST = "225.0.0.1";
    
    //MESSAGE NAMES 
    public static final String REQUEST = "REQUEST";
    public static final String LOGIN = "LOGIN";
    public static final String REGISTER = "REGISTER";
    public static final String LOGOUT = "LOGOUT";
    public static final String EXIT = "EXIT";
    public static final String EDIT_COPY = "EDIT_COPY";
    public static final String READ_COPY = "READ_COPY";
    public static final String UPLOAD_FILE = "UPLOAD_FILE";
    public static final String DELETE_FILE = "DELETE_FILE";
    public static final String UPDATE_FILE = "UPDATE_FILE";
    public static final String NOTIFY_CLIENT = "NOTIFY_CLIENT";
    public static final String DISCARD_EDIT_COPY = "DISCARD_EDIT_COPY";
    public static final String DISCARD_READ_COPY = "DISCARD_READ_COPY";
    public static final String FILE_UPDATED = "FILE_UPDATED";
    public static final String FILE_DELETED = "FILE_DELETED";
    public static final String SUCCESS = "OK"; //para autenticação
    public static final String INSUCCESS = "NOT_OK"; //para autenticação
    public static final String INFO = "INFO"; //meramente informativo
    
    //OTHER CONSTANTS    
    public static final String ACCOUNTS_FILE = "Accounts.txt";
    public static final String FILES_FILE = "Files.txt";
    public static final String FORMAT_EXCEPTION = "Formato invalido!";
    public static final String NONEXISTENT_ACCOUNT = "Conta inexistente!";
    public static final String INCORRECT_PASSWORD = "Password incorrecta!";
    public static final String ALREADY_EXISTS_ACCOUNT = "Ja existe o username ";
    public static final String ALREADY_LOGGED = "Utilizador actualmente logado!";
    public static final String LOGGED_AS = "Esta logado como ";
    public static final String ONLINE_USERS = "Utilizadores online: ";
    public static final String UPLOADING = "A ENVIAR: ";
    public static final String DOWNLOADING = "A RECEBER: ";
    public static final String COPY_RECEIVED = "COPIA RECEBIDA: ";
    public static final String COPY_DISCARDED = "COPIA DESCARTADA: ";
    public static final String DELETED = "ELIMINADO: ";
    public static final String ADDED = "ADICIONADO: ";
    public static final String UPDATED = "ACTUALIZADO: ";
    public static final String WARNING = "AVISO: ";
    public static final String IS_OPEN = " esta aberto";
    public static final String IS_BEING_USED = "esta a ser acedido";
    public static final String REMOVED_BY_AUTHOR = " removido pelo autor";
    public static final String UPDATED_BY_AUTHOR = " actualizado pelo autor";
    public static final String NO_SPACE = "repositorio nao tem espaco suficiente";
    public static final String ERROR = "erro a enviar ";
    public static final String ALREADY_HAVE = "ja tem uma copia de ";
    public static final String ALREADY_EXISTS_FILE = " ja existe no repositorio";
    public static final int TABLE_COLUMNS_NUMBER = 7;
    public static final String[] REP_TABLE_COLUMNS_NAME = {"Nome do Ficheiro","Tamanho","Criacao","Modificacao","Leitura","Alteracao","Eliminar"};
    public static final String[] MY_TABLE_COLUMNS_NAME = {"Nome do Ficheiro","Tamanho","Criacao","Modificacao","Abrir","Actualizar","Descartar"};
}